/*
* Copyright (c) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Camerality project tracing definitions.
*/
#ifndef CAMERALITYTRACES_H_
#define CAMERALITYTRACES_H_

#define CAMERALITY_TRACE_ON

#ifdef CAMERALITY_TRACE_ON
    #include <e32std.h>
    #include <e32debug.h>
    #include <flogger.h>

    #define CAMERALITY_LOG_TO_DEBUG_OUTPUT

    #define TRACE_DIR _L("camerality")
    #define TRACE_FILE _L("debug.log")

    #define TRACE(x)       RDebug::Print(_L(x));
    #define TRACE_ARG(txt,parm...) RDebug::Printf(txt, parm);
    #define TRACE_ENTER()  RDebug::Printf("%s =>", __PRETTY_FUNCTION__);
    #define TRACE_VISIT()  RDebug::Printf("%s =><=", __PRETTY_FUNCTION__);
    #define TRACE_EXIT()   RDebug::Printf("%s <=", __PRETTY_FUNCTION__);

#else
    #define TRACE(x)
    #define TRACE_ARG(txt,parm...)
    #define TRACE_ENTER()
    #define TRACE_VISIT()
    #define TRACE_EXIT()
#endif // CAMERALITY_TRACE_ON

#endif /* CAMERALITYTRACES_H_ */
